
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<nav id="sidebar">
    <!-- Sidebar Header-->
    <div class="sidebar-header d-flex align-items-center">
        <div id="avatar" class="avatar">
            <c:if test="${sessionScope.myDetail.pic == null}">
                <img id="myHeadPic" src="${pageContext.request.contextPath}/assets/img/avatar-6.jpg" alt="..." style="width: 50px;height: 50px" class="img-fluid rounded-circle">
            </c:if>

            <c:if test="${sessionScope.myDetail.pic != null}">
                <img id="myHeadPic" src="${sessionScope.myDetail.pic}" alt="..." style="width: 50px;height: 50px" class="img-fluid rounded-circle">
            </c:if>
                <%--<img src="../assets/img/avatar-6.jpg" alt="..."--%>
                     <%--class="img-fluid rounded-circle" id="myHeadPic">--%>
        </div>
        <div class="title">
            <h1 class="h5">${sessionScope.myDetail.username}</h1>
            <p>${sessionScope.myDetail.dept_name}</p>
        </div>
    </div>
    <!-- Sidebar Navidation Menus--><span class="heading">Main</span>
    <ul class="list-unstyled">
        <li><a href="${pageContext.request.contextPath}/view/home"> <i class="icon-home"></i>主页 </a></li>
        <li><a href="#userDropdown" data-toggle="collapse" aria-expanded="true"> <i
                class="icon-windows"></i>用户列表</a>
            <ul id="userDropdown" class="collapse show">
                <li class="active"><a href="${pageContext.request.contextPath}/user/showUserByPage">查看用户</a></li>
                <li><a href="${pageContext.request.contextPath}/user/myUser">我关注的用户</a></li>
                <li><a href="${pageContext.request.contextPath}/article/articleList">发布文章</a></li>
                <li><a href="${pageContext.request.contextPath}/article/myCollection">我的收藏</a></li>
            </ul>
        </li>
        <!--<li><a href="login.html"> <i class="icon-logout"></i>Login page </a></li>-->

        <li><a href="#depDropdown" data-toggle="collapse"> <i class="icon-windows2"></i>部门列表</a>
            <ul id="depDropdown" class="collapse list-unstyled ">
                <li><a href="${pageContext.request.contextPath}/view/department">全部部门</a></li>
                <li><a href="${pageContext.request.contextPath}/meeting/meetingList">会议系统</a></li>
            </ul>
        </li>

    </ul>

</nav>



